package com.elder.business.service;

import java.util.List;

import com.alibaba.fastjson2.JSONObject;
import com.elder.business.domain.MealRecords;
import com.elder.business.domain.MealRecordsDTO;
import com.elder.common.core.page.TableDataInfo;

/**
 * 膳食记录Service接口
 * 
 * @author elder
 * @date 2023-11-26
 */
public interface IMealRecordsService 
{
    /**
     * 查询膳食记录
     * 
     * @param mealId 膳食记录主键
     * @return 膳食记录
     */
    public JSONObject selectMealRecordsByMealId(Long mealId);

    /**
     * 查询膳食记录列表
     * 
     * @param
     * @return 膳食记录集合
     */
    public TableDataInfo selectMealRecordsList(String elderName,String startTime,String endTime,Integer pageNum,Integer pageSize);

    /**
     * 新增膳食记录
     * 
     * @param mealRecords 膳食记录
     * @return 结果
     */
    public int insertMealRecords(MealRecordsDTO mealRecords);

    /**
     * 修改膳食记录
     * 
     * @param mealRecords 膳食记录
     * @return 结果
     */
    public int updateMealRecords(MealRecordsDTO mealRecords);

    /**
     * 批量删除膳食记录
     * 
     * @param mealIds 需要删除的膳食记录主键集合
     * @return 结果
     */
    public int deleteMealRecordsByMealIds(Long[] mealIds);

    /**
     * 删除膳食记录信息
     * 
     * @param mealId 膳食记录主键
     * @return 结果
     */
    public int deleteMealRecordsByMealId(Long mealId);
}
